<script>
_h=h= Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
var sWidth = parseInt((window.innerWidth > 0) ? window.innerWidth : screen.width);
if(sWidth>750){sWidth=750;}
var _rate=(sWidth/750);
if(h<_rate*1330){h=_rate*1330;}
<?php if($_GET['id'] == 1){ ?>
$(".p3").show().css({"opacity":1});
<?php }elseif (2 == $_GET['id']){ ?>
$(".p2").show().css({"opacity":1});
<?php  }else{  ?>
$(".p4").show().css({"opacity":1});
<?php } ?>
$(function(){
	
	$('.container').width(sWidth).height(h);
	$('.p-b').width(sWidth).height(_rate*1330);
	 
	$('.p2-t2').width(_rate*634).height(_rate*234).css({"top":_rate*276});
	$('.p2-z1').css({"top":_rate*272, "left":_rate*150});
	$('.p2-z2').width(_rate*386).height(_rate*64).css({'line-height':_rate*64+'px',"top":_rate*70, "left":_rate*182});
	$('.p2-z3').width(_rate*386).height(_rate*64).css({'line-height':_rate*64+'px',"top":_rate*134, "left":_rate*182});
	$('.wan-t2').css({"top":_rate*364});
	$('.wan-z2').css({"top":_rate*454});

	$('.p5-t1').width(_rate*390).height(_rate*90).css({"top":_rate*342, "left":_rate*180});
	$('.p5-t2').width(_rate*390).height(_rate*90).css({"top":_rate*458, "left":_rate*180});
	$('.p5-t3').width(_rate*390).height(_rate*90).css({"top":_rate*562, "left":_rate*180});

	$('.p3-back').width(_rate*200).height(_rate*84).css({"top":_rate*940, "left":_rate*270});
	$('.p2-back').width(_rate*200).height(_rate*84).css({"top":_rate*472, "left":_rate*270});
	$('.p4-back').width(_rate*200).height(_rate*84).css({"top":_rate*722, "left":_rate*270});
	 
	$('.p2-back, .p3-back, .p4-back').click(function(){
        window.location.href="game.php";
	});

	wx.config({
        appId: '<?php echo $signPackage["appId"];?>',
        timestamp: <?php echo $signPackage["timestamp"];?>,
        nonceStr: '<?php echo $signPackage["nonceStr"];?>',
        signature: '<?php echo $signPackage["signature"];?>',
        jsApiList: ['updateAppMessageShareData', 'updateTimelineShareData', 'showMenuItems', 'hideMenuItems','getLocation']
    });
    wx.ready(function () {
    		var _title='结大义，谋大利';
    		var _desc='2021中国区代理运营商闭门会议';
    		var _link='http://mei94.com/meeting/';
    		var _imgUrl='http://mei94.com/meeting/img/6.jpg';
    			wx.updateAppMessageShareData({
    			    title: _title, 
    			    desc: _desc, 
    			    link: _link, 
    			    imgUrl: _imgUrl, 
    			    success: function () {
    			    }
    			  })
    			 wx.updateTimelineShareData({ 
                      title: _desc, 
                      link: _link, 
                      imgUrl: _imgUrl, 
                      success: function () {
                      }
                    })
         
    });

});
</script>